//
//  YCPhotoViewerModel.h
//  PhotoViewer
//
//  Created by 唐可雄 on 17/2/12.
//  Copyright © 2017年 swustyc. All rights reserved.
//

#import <Foundation/Foundation.h>

@import UIKit;

/**
 照片协议
 */
@protocol YCPhoto <NSObject>

- (NSString *)title;
- (UIImage *)image;

@end

@class YCPhotoViewController;

/**
 照片浏览器的模型
 */
@interface YCPhotoViewerModel : NSObject<UIPageViewControllerDataSource>

/**
 图片列表
 */
@property (nonatomic, strong) NSArray<id<YCPhoto>> *photoes;
/**
 当前是第几张
 */
@property (assign) NSInteger curIndex;

- (YCPhotoViewController *)viewControllerAtIndex:(NSUInteger)index;
- (NSUInteger)indexOfViewController:(YCPhotoViewController *)viewController;

@end
